package org.cytoscape.myapp.cytoscape_app_v1.internal.grupos.comparadores;

public class ComparadorOr extends Comparador{
	
	private Comparador c1;
	private Comparador c2;

	public ComparadorOr(){
		
	}
	
	public ComparadorOr(Comparador c1, Comparador c2){
		this.c1 = c1;
		this.c2 = c2;
	}
	
	public Comparador getC1() {
		return c1;
	}

	public void setC1(Comparador c1) {
		this.c1 = c1;
	}

	public Comparador getC2() {
		return c2;
	}

	public void setC2(Comparador c2) {
		this.c2 = c2;
	}

	public boolean cumple(Object value) {
		return (c1.cumple(value) || c2.cumple(value));
	}
	
	public int size(){
		return c1.size() + c2.size();
	}
}
